package cn.ynrcb.personnelfile.admin.param;

import cn.ynrcb.personnelfile.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "整改需求审核参数")
public class DemandInfoAuditParam {

    /**
     * 需求主键id
     */
    @ApiModelProperty(value = "需求主键id", name = "id", required = true, example = "1")
    @NotNull(message="需求主键id不能为空", groups = {UpdateGroup.class})
    private Long id;

    /**
     * 是否通过
     */
    @ApiModelProperty(value = "是否通过", name = "isAudit", required = true, example = "true")
    @NotNull(message="是否通过不能为空", groups = {UpdateGroup.class})
    private Boolean isAudit;

    /**
     * 审核备注
     */
    @ApiModelProperty(value = "审核备注", name = "auditRemark", required = true, example = "审核通过，请维护人员尽快维护！")
    @NotBlank(message="审核备注不能为空", groups = {UpdateGroup.class})
    private String auditRemark;

    /**
     * 进场维护人员ids
     */
    @ApiModelProperty(value = "进场维护人员ids", name = "dealUserIds", required = true, example = "1,2,3")
    @NotBlank(message="进场维护人员ids不能为空", groups = {UpdateGroup.class})
    private String dealUserIds;

}
